package com.cos.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsTypes {
    private Integer id;

    private String goodsTypeName;

    private Integer goodsTypePid;
    //定义一个集合来装子节点
    private List<GoodsTypes> children= new ArrayList<>();

}
